/* OpenGL texture info */
#pragma once

#include "GLES2\gl2.h"
#include "EGL\egl.h"
#include <png.h>
#include "malloc.h"

namespace DinoUtils
{
	struct gl_texture_t
	{
		GLsizei width;
		GLsizei height;

		GLenum format;
		GLint internalFormat;
		GLuint id;

		GLubyte *texels;
	};

	void GetPNGtextureInfo (int color_type, gl_texture_t *texinfo);

	gl_texture_t *ReadPNGFromFile (const char *filename);

	GLuint loadPNGTexture (const char *filename);
}